package com.itheima.mapper;

import com.itheima.common.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface OrderMapper {


    /**
     * 根据预约日期查询预约设置数据
     * @param orderDate
     * @return
     */
    Long findCountByOrderDate(Date orderDate);

    /**
     * 根据预约日期修改预约设置数据
     * @param orderSetting
     */
    void editNumberByOrderDate(OrderSetting orderSetting);

    /**
     * 添加预约设置数据
     * @param orderSetting
     */
    void add(OrderSetting orderSetting);

}
